package cn.yotta.user.api.params.login;

import cn.yotta.common.api.model.CheckValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.function.Supplier;

/**
 * @author wyaoyao
 * @date 2022/11/8 10:27
 */
@Data
public abstract class BaseLoginRequest implements CheckValid {

    public abstract Supplier<String> getCredentials();

    public abstract Supplier<String> getPrincipal();

    /**
     * 是否是app登录
     */
    @ApiModelProperty(value = "是否app登录; 默认false")
    private Boolean isApp = Boolean.FALSE;
}
